<?php

	class Vehingle{
		protected $maxSpeed;
		protected $model;
		protected $color;
		protected $power;
		protected $type;
		
		public function __construct($maxSpeed,$model,$color,$power){
		$this->maxSpeed=$maxSpeed;
		$this->model=$model;
		$this->color=$color;
		$this->power=$power;
		$this->type="Unknow";	

		}
	

		public function printInfo() {
			echo "This vehingle is " . $this->getType() . "  ,maxspeed is  " . $this->maxSpeed .", model- " . $this->model . " ,her color - " . $this->color." and power-".$this->power."h.p"."<br/>";
	
		}
		
		public function changeColor($newColor) {
			$this->color = $newColor;
		}
		
		public function getType() {
			return $this->Type;
		}
		
	}	
	
?>